import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

import {state,mutations,getters} from './mutations'
import actions from './actions'
import cate from './modules/cate'
import specs from './modules/specs'
import goods from './modules/goods'
import member from './modules/member'
import banner from './modules/banner'
import seck from './modules/seck'



export default new Vuex.Store({
  // 存放状态数据
  state,
  // 专门修改state状态
  mutations,
  // 提交mutations和异步请求操作
  actions,
  // 派生state状态
  getters,
  // 存放子模块
  modules: {
   cate,
   specs,
   goods,
   member,
   banner,
   seck,
  }
})
